libxenstat: handle renamed VIFs
authorJacek Konieczny <jajcus@jajcus.net>
Fri, 23 May 2014 12:47:21 +0000 (14:47 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 2 Jun 2014 13:36:55 +0000 (14:36 +0100)
commitb2a332bfde7aff580f461a1d81b5340573d556d1
treeeb87a8dad8154d18253a3531651c599804a7fc9b
parent821096dd8acc4b5ba32f942e3daf9ff2b928ce09
libxenstat: handle renamed VIFs

Before trying to parse network interface name as 'vif*.*'
try to get the domid and network number from sysfs.

Fixes xentop output for domains with VIF renamed through the
'vifname' xl option.

Signed-off-by: Jacek Konieczny <jajcus@jajcus.net>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xenstat/libxenstat/src/xenstat_linux.c